<script setup>
// import { getBannerAPI } from '@/apis/home'
import {  ref } from 'vue'

const bannerList = ref([
  '../../../../public/banner1.jpg',
  '../../../../public/banner2.jpg',
  '../../../../public/banner3.jpg',
  '../../../../public/banner4.jpg',
  '../../../../public/banner5.jpg'
])
console.log(bannerList.value);
</script>



<template>
  <div class="home-banner">
    <el-carousel height="500px">
      <el-carousel-item>
        <img src="../../../../public/banner1.jpg">
      </el-carousel-item>
      <el-carousel-item>
        <img src="../../../../public/banner2.jpg">
      </el-carousel-item>
      <el-carousel-item>
        <img src="../../../../public/banner3.jpg">
      </el-carousel-item>
      <el-carousel-item>
        <img src="../../../../public/banner4.jpg">
      </el-carousel-item>
      <el-carousel-item>
        <img src="../../../../public/banner5.jpg">
      </el-carousel-item>
    </el-carousel>
  </div>
</template>



<style scoped lang='scss'>
.home-banner {
  width: 1240px;
  height: 500px;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 98;

  img {
    width: 100%;
    height: 500px;
  }
}
</style>